package com.cyt.work.question.dao;

import com.cyt.base.dao.BaseDao;
import com.cyt.work.question.model.dto.QuestionUserDto;
import com.cyt.work.question.model.po.QuestionScore;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 问卷答题得分表
 *
 * @author congcong tao
 * @create 2019/7/8 10:44
 */
public interface QuestionScoreDao extends BaseDao<QuestionScore> {

    /**
     * 批量插入
     * @param list
     * @author congcong tao
     * @date 2019/9/2 16:47
     */
    int insertScoreList(List<QuestionScore> list);

    /**
     * 查询考试人数
     * @param questionScore
     * @author congcong tao
     * @date 2019/9/2 16:47
     */
    long selectCountGroupByUser(QuestionScore questionScore);

    /**
     * 查询已答卷人员
     * @param questionId
     * @author congcong tao
     * @date 2019/9/2 16:47
     */
    List<QuestionUserDto> selectUserList(@Param("questionId") String questionId);
}
